package com.ark.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("setmeal")
@Schema(description = "套餐实体类")
public class Setmeal implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;

    //分类id
    @Schema(description = "分类id")
    private Long categoryId;

    //套餐名称
    @Schema(description = "套餐名称")
    private String name;

    //套餐价格
    @Schema(description = "套餐价格")
    private BigDecimal price;

    //状态 0:停用 1:启用
    @Schema(description = "状态 0-停用 1-启用")
    private Integer status;

    //描述信息
    @Schema(description = "描述信息")
    private String description;

    //图片
    @Schema(description = "图片地址")
    private String image;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;

    @Schema(description = "创建人")
    private Long createUser;

    @Schema(description = "修改人")
    private Long updateUser;
}
